package com.monkeybrother.spring.async;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RestController
public class AsyncController {
    @Autowired
    private AsyncService service;

    @GetMapping("test/async")
    public String testAsync() {
       return service.performAsyncOperation();
    }
}
